home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trusted Irix /B 4.0.4
/
Trusted-Irix B-4.0.1.iso
/
dist
/
eoe1.idb
/
etc
/
bcheckrc.z
/
bcheckrc
Wrap
Text File
|
1992-04-03
|
1KB
|
47 lines
#! /bin/sh
#Tag 0x00000f00
#ident "$Revision: 1.23 $"
#
# This script runs those commands necessary to check file systems, to make
# generic device links, and to do anything else that should be done before
# mounting file systems.
#
if [ "`/etc/nvram diskless 2> /dev/null`" -eq 1 ] ; then
if [ -f /usr/etc/boot/makedev ] ; then
cd /dev; ./MAKEDEV > /dev/null
rm -f /usr/etc/boot/makedev
fi
else
set `/etc/devnm /`
rootfs=$1
/etc/fsstat ${rootfs} >/dev/null 2>&1
if [ $? -eq 1 ] ; then
echo "The root file system, ${rootfs}, is being checked automatically."
/etc/fsck -y -D -b ${rootfs}
fi
set `ls -Lid /dev/root $rootfs`
if [ ! -b /dev/root -o "$1" -ne "$3" -o ! -c /dev/rroot ] ; then
rm -rf /dev/root
ln $rootfs /dev/root
rm -rf /dev/rroot
ln /dev/rdsk/`basename $rootfs` /dev/rroot
fi
if hinv -c tape > /dev/null && [ ! -c /dev/tape ]
then # a tape has been installed; create the devices for it
echo Creating tape devices
cd /dev; ./MAKEDEV tape > /dev/null
fi
fi
# If an lvtab is present, run lvinit; this must be done before any mounts
# since any non-root filesystem may be on a logical volume.
if [ -f /etc/lvtab ] ; then
/etc/lvinit
fi
# Remove ps temporary file
rm -rf /tmp/.ps_data